<?php
ini_set('session.use_trans_sid', 1);
session_start();
if(isset($_SESSION['name'])){
    if ($_SESSION['numButtons'] == 3){
$number =  $_SESSION['currentActualTextNumber'];
$actualText=$_SESSION['text'][$number];
echo "<input name=\"selText\" id=\"selText\" title=\"click or touch to submit in chat\" type=\"button\" value=\"";
if (strlen($actualText) < 36 )	{
echo $actualText;
}
else	{
    echo(substr( $actualText,0,36));echo "\n";
    echo(substr( $actualText,36,72));
}
    
echo " \" onclick=\"touchsubmit()\">";
 $_SESSION['currentActualTextNumber']= $_SESSION['currentActualTextNumber']+1;
if ($_SESSION['currentActualTextNumber']== $_SESSION['fileLines']) $_SESSION['currentActualTextNumber']=0;
}
else echo " ";
}

?>